       
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> 

    ROLE_ADMIN，ROLE_HR，ROLE_COMMON这些角色在sys_roles表中设置
            <sec:authorize access="hasRole('ROLE_ADMIN')">
                <div>
                    <!-- 3 -->
                    <p class="bg-info">${msg.content_admin}</p>
                </div>
            </sec:authorize>
            <sec:authorize access="hasRole('ROLE_HR')">
                <div>
                    <!-- 3 -->
                    <p class="bg-info">只有HR角色的人员才能看到</p>
                </div>
            </sec:authorize>

            <sec:authorize access="hasRole('ROLE_COMMON')">
                <div>
                    <p class="bg-info">所以用户都能看到</p>
                </div>
            </sec:authorize>